<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ page isELIgnored="false"%>
<c:set var="ctx" value="${pageContext.request.contextPath}"></c:set>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">

    <title>个人信息表</title>

    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <meta http-equiv="Content-Type" content="multipart/form-data;charset=utf-8" />
    <link rel="stylesheet" href="../resources/css/bootstrap.min.css" />
    <script src="${pageContext.request.contextPath}/resources/js/inform.js"></script>
    <script src="${pageContext.request.contextPath}/kindeditor/kindeditor-all.js"></script>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/kindeditor/themes/default/default.css" />
    <link rel="stylesheet" href="${pageContext.request.contextPath}/kindeditor/plugins/code/prettify.css" />
    <script charset="utf-8" src="${pageContext.request.contextPath}/kindeditor/lang/zh-CN.js"></script>
    <script charset="utf-8" src="${pageContext.request.contextPath}/kindeditor/plugins/code/prettify.js"></script>
	<script>
        KindEditor.ready(function(K) {
            var editor1 = K.create('textarea[name="resume"]', {
                cssPath : 'kindeditor/plugins/code/prettify.css',
                uploadJson : '${pageContext.request.contextPath}/upload/fileUpload',
                fillDescAfterUploadImage : false,
                allowFileManager : true,
                afterCreate : function() {
                    var self = this;
                    K.ctrl(document, 13, function() {
                        self.sync();
                    });
                    K.ctrl(self.edit.doc, 13, function() {
                        self.sync();
                    });
                }
            });
            prettyPrint();
        });
    </script>
    <style>
    	.thewidth{
    	width:130px;
    	}
    </style>
</head>
<body>
<h2 align="center">个人信息表</h2>
<form id="inform" action="${ctx}/register" method="post" enctype="multipart/form-data"><br>
    <table class=mytable style="border: 1px;margin: 0 auto;" >
    <tr>
        <td class=thewidth>姓名</td>
        <td><input type="text" id="name" name="name"></td>
        <td>性别</td>
        <td><select name="gender">
		<option>男</option>
		<option>女</option>
		</select>
		</td>
    </tr>
     <tr>
        <td class=thewidth>身份证号</td>
        <td><input type="text" id="cardId" name="cardid" ></td>
        <td>手机号码</td>
        <td><input type="tel" id="mobile" name="mobile"></td>
    </tr>
    <tr>
       <td class=thewidth>简历信息</td>
        <td colspan="3"><textarea id="resume" name="resume" cols="50" rows="8"></textarea></td>
    </tr>
     <tr>
        <td class=thewidth>选择公司</td>
        <td colspan="3">
	<select id="companyId" name="companyid">
							   <option value="0">请选择--默认为HRPMNS人员</option>
							   <c:forEach items="${companyList }" var="data">
							       <option value="${data.id }">${data.companyName }</option>
							   </c:forEach>
							</select>
</td>
    </tr>
    <tr>
        <td colspan="4" align="right">感谢您的参与</td>
    </tr>
    <tr>
        <td colspan="4" align="right">
            <button type="button" id="submit-btn">提交</button>
            <button type="button" onclick="history.go(-1)">退出</button>
        </td>
    </tr>
    </table>
</form>
</body>
</html>
